package cn.fboost.mtos.dto.request;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 订单列表请求
 */
@Data
public class OrderListRequest {
    @Positive(message = "用户ID有误")
    private Integer userId;
    @Positive(message = "商品ID有误")
    private Integer productId;
    private Integer status;
    @Valid
    @NotNull(message = "分页参数不能为空")
    private PageRequest pagination;
}
